/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package trocabi.Socle;

import java.util.logging.Logger;

/**
 *
 * @author philippe
 */
public class TechnicalException extends Exception {
    private static final Logger    logger = Logger.getLogger("Socle.TechnicalException");
    
    public TechnicalException(String msg) { 
        super(msg); 
        logger.severe(String.format("%s %s",getLocalizedMessage(),getMessage()));
    }
   
    public TechnicalException(String msg,Throwable cause) { // permet de propage l'origine d'une execption
        super(msg, cause); 
        logger.severe(String.format("%s %s",getLocalizedMessage(),getMessage()));
    }
}
 